public class MySingleList implements IList {

    @Override
    public void addFirst(int data) {

    }

    @Override
    public void addLast(int data) {

    }

    @Override
    public void addIndex(int index, int data) {

    }

    @Override
    public boolean contains(int key) {
        return false;
    }

    @Override
    public void remove(int key) {

    }

    @Override
    public void removeAllKey(int key) {

    }

    @Override
    public int size() {
        return 0;
    }

    @Override
    public void clear() {

    }

    @Override
    public void display() {

    }

    @Override
    public ListNode reverse() {
        return null;
    }

    //静态内部类 ， 可通过 外部类类名.静态内部类类名拿到
        static class ListNode {
            private int val;
            private ListNode next;

            public ListNode(int val) {
                this.val = val;
            }

            public int getVal() {
                return val;
            }

            public ListNode getNext() {
                return next;
            }

            public void setNext(ListNode next) {
                this.next = next;
            }
        }

        public ListNode head;//表示当前节点的头节点

        public int listSize;
}
